package com.wang.cloud.manage.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wang.cloud.common.mysql.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
* <p>
* 系统-菜单权限表
* </p>
*
* @author wy
* @since 2024-07-15
*/
@Getter
@Setter
@TableName("sys_menu")
@Schema(name = "MenuEntity", description = "系统-菜单权限表")
public class MenuEntity extends BaseEntity {

    @Schema(description = "父菜单ID")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "所属上级菜单（路由）的id集合")
    @TableField("ancestors")
    private String ancestors;

    @Schema(description = "菜单（路由）的所在层级（最多支持5级）")
    @TableField("lv")
    private Integer lv;

    @Schema(description = "菜单(路由)名称")
    @TableField("menu_name")
    private String menuName;

    @Schema(description = "路由地址")
    @TableField("path")
    private String path;

    @Schema(description = "菜单图标")
    @TableField("icon")
    private String icon;

    @Schema(description = "菜单类型（M目录 C菜单 F按钮）")
    @TableField("menu_type")
    private String menuType;

    @Schema(description = "菜单状态（0正常 1停用）")
    @TableField("status")
    private String status;

    @Schema(description = "显示顺序")
    @TableField("order_num")
    private Integer orderNum;

    @Schema(description = "权限标识")
    @TableField("perms")
    private String perms;

    @Schema(description = "组件路径")
    @TableField("component")
    private String component;

    @Schema(description = "是否为外链（0是 1否）")
    @TableField("is_frame")
    private Integer isFrame;

    @Schema(description = "是否缓存（0缓存 1不缓存）")
    @TableField("is_cache")
    private Integer isCache;

    @Schema(description = "菜单状态（0显示 1隐藏）")
    @TableField("visible")
    private String visible;

    @Schema(description = "子路由数量")
    @TableField("child_nodes_num")
    private Integer childNodesNum;
}
